import pytest

from AppWorkWxin.PO.defaultpage import DefaultPage


class TestAddMember():
    
    @pytest.mark.parametrize(
        "membername, phoneno",
        [
            ("咖喱", "13508018093")
        ]
    )
    def test_addmember_by_manual_success(self, membername, phoneno):
        """
        测试通过手动输入添加：添加成功
        :return:
        """
        defaultpage = DefaultPage()
        defaultpage.goto_ContactPage().goto_AddmemberPage().get_addways("手动输入添加").addmember_by_manual(membername,phoneno)
        # defaultpage = DefaultPage()
        # tips = defaultpage.goto_ContactPage().goto_AddmemberPage().get_tips()
        # assert "添加成功" == tips
     
    

    